gesturesingle: Ignore motion/updates from unhandled sequences
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 13 Apr 2015 14:15:11 +0000 (16:15 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 13 Apr 2015 15:27:04 +0000 (17:27 +0200)
commit8bf5b175b1ed63d296b58cbe6e1c39ab2b9cff52
tree3afb97b9c9c1bef4947b66ff9d604a0e1be30204
parent71c0efb361b83cd175b1d3a66f7443dc506e9bdb
gesturesingle: Ignore motion/updates from unhandled sequences

This used to do the right thing, practically ignoring those event
if they went all through the event handler, unless this motion event
triggered the cancellation of this gesture from the event handler
of another controllers.

In this case, the controller would be reset, but the motion event
would still go through its handler, setting again
current_button/sequence as the motion event has buttons in its
modifiers. This leaves GtkGestureSingle with inconsistent data
that may interfere with future runs.

https://bugzilla.gnome.org/show_bug.cgi?id=747469
gtk/gtkgesturesingle.c